package com.walter.learn.UseThread.ThreadDemo1;

/*
 * MyFileReader.java
 * 线程1
 */
public class MyFileReader extends Thread {
    private MyBufferCache buffer;//引用变量

    public MyFileReader(MyBufferCache buffer) {
        this.buffer = buffer;
    }

    public void run() {
        //      System.out.println(Thread.currentThread().getName());
        buffer.read();
    }
}
